<!DOCTYPE html>
<html>	   
  <head>		     
    <meta http-equiv="content-type" content="text/html; charset=utf-8">		     
    <title>{% block title %}Энциклопедия недоступных женщин{% endblock %}</title>		     
    <link rel="shortcut icon" href="/static/img/favicon.ico">
    <style type='text/css'>			
    	body { margin: 0px; }  			 			
    	div.item-title { font-size: 10pt } 			
    	.menu-item { cursor: pointer; color: lightgray; margin-right: 30px; font-weight: bold; border-bottom: 1px white dotted } 			
    	.menu-item:hover { color: white } 			
    	div.menu-container { position: fixed; z-index: 1; top: 0px; left: 0px; width: 100%; height: 40px; background: #404040; font-family: tahoma; font-size: 10pt; 	-moz-box-shadow: 5px 4px 5px rgba(0,0,0,0.5); /* Firefox */ -webkit-box-shadow: 5px 4px 5px rgba(0,0,0,0.5); /* Safari and Chrome */ box-shadow: 5px 4px 5px rgba(0,0,0,0.5); /* Shadow parameters */ } 			
    	div.menu { width: 1160px; clear: both; margin: auto; height: 40px } 			
    	div.footer { background: black; width: 100%; height: 100px; overflow: hidden; -moz-box-shadow: 5px 4px 5px rgba(0,0,0,0.5); /* Firefox */ -webkit-box-shadow: 0px -4px 3px rgba(0,0,0,0.5); /* Safari and Chrome */ box-shadow: 0px -4px 3px rgba(0,0,0,0.5); /* Shadow parameters */ } 			
    	span.footer-item { color: white; margin-left: 20px; font-style: italic } 			
    	div.photo > img { position: absolute; margin-top: 0px; width: 260px; height: 260px }
    	div.photo:hover { border: 2px dotted black; margin: 3px; cursor: pointer } 			
    	div.photo {  border: 5px solid gold; position: relative } 			
    	div.thumbnail{ display: block; float: left; width: 260px; height: 260px; background-size: 100% auto; overflow: hidden } 			
    	div.item-tag { font-size: 8pt } 			
    	span.comment { border: 1px solid gold; font-size: 8pt } 			
    	span.comment:hover { border-bottom: 1px dotted black; cursor: pointer } 			
    	div.item { float: left; margin: 0px 20px 20px 0px; background-color: gold; font-family: arial } 			
    	.form-font { font-size: 10pt; font-family: tahoma } 			
    	.form-caption { font-size: 10pt; font-family: tahoma } 			
    	div.form-button { text-align: center; color: white; padding: 3px; border-radius: 3px; border: 1px solid gray; cursor: default; width: 100px} 			
    	div.form-button-bk { background: #505050 } 			
    	div.form-button-bk:hover { background: #606060 } 			
    	div.form-button-bk-loader { background: #606060 } 			
    	div.loader { text-align: center; background: #606060; color: white; padding: 3px; border-radius: 3px; border: 1px solid gray; cursor: default; } 			
    	.item-caption { color: white; overflow: hidden; background: url( '/static/img/membrane.png' ); text-align: center; font-size: 10pt } 			
    	input { width: 150px } 			
    	select { width: 150px } 			
    	a { text-decoration: none }
    	a.name_surname { color: white; font-weight: bold }
    	a.name_surname:hover{ text-decoration: underline }
    </style>		 
	<script src='/static/js/jquery.js' type='text/javascript'></script>   		     
	<script type="text/javascript">
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-36711877-1']);
		_gaq.push(['_trackPageview']);

		(function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();

</script>
	{% block head %}{% endblock %}
  </head>	   
  <body>
    <div class='menu-container'>			         
      <div class='menu'>				           
        <table height='100%' cellpadding='0px' cellspacing='0px' width='100%'>					             
          <tr>						               
			{% block menu %}
				<td valign='middle'>                
					<a class='menu-item' href='/viewer/'>Все девушки</a>
					<a class='menu-item' href='/viewer/#filter-lads'>Фильтр</span>
					<a class='menu-item' href='/viewer/#add-lad'>Добавить девушку</a>
				</td>					             
			{% endblock %}

          	<td align='right'>
          		<img style='display: block' src='/static/img/encyclopedia.png'>
          	</td>
          </tr>				           
        </table>			         
      </div>		       
    </div>
    {% block body %}{% endblock %}

    <div style='width: 100%; margin-top: 40px; clear: both'>			         
      <div id='item-container' style='margin-left: auto; margin-right: auto; width: 1160px; min-height: 2000px; padding: 20px 10px 10px 10px; position: relative'>			
		{% block container %}{% endblock %}
      </div>		       
    </div>

    <div class='footer'>					         
      <table height='100%' cellpadding='0px' cellspacing='0px'>				           
        <tr>					             
          <td valign='middle'>              
            <span class='footer-item'>О проекте               
            </span>
          </td>				           
          {% block footer %}{% endblock %}
        </tr>			         
      </table>		         
      <div>	   
  </body>	